string pick the first 2 characters python

41

string pick the first 2 characters python -

t = "your string"
t[:2]

Comments

Submit
0 Comments